import requests from '@/utils/requests'

//获取商品详情的渲染数据
export const goodsDetail = goodsId => requests.get('/goods/detail', {
    params: {
        goodsId
    }
})

//添加购物车
export const addCart = (goodsId, goodsNum, goodsSkuId) => requests.post('/cart/add', {
    goodsId, goodsNum, goodsSkuId
})